Set options
knitr::opts_chunk$set(
warning = FALSE, # show warnings during codebook generation
message = FALSE, # show messages during codebook generation
error = TRUE, # do not interrupt codebook generation in case of errors,
# usually better for debugging
echo = TRUE # show R code
)
ggplot2::theme_set(ggplot2::theme_bw())
Prepare codebook
library(codebook)
library(labelled)
# Load data
codebook_data <- vroom::vroom(here::here("Data/Processed/Exp1/Kan_Processed_Exp1_Main_Acc_data.tsv"))
# Label variables
var_label(codebook_data$participant_id) <- "Unique identifier of the participant"
var_label(codebook_data$lab) <- "Unique identifier of the data collection site"
var_label(codebook_data$trial_id) <- "Unique identifier of a trial"
var_label(codebook_data$stim_type) <- "Congruency of the Stroop trial"
var_label(codebook_data$stimulus) <- "Word of the Stroop trial"
var_label(codebook_data$stim_color) <- "Ink of the Stroop trial"
var_label(codebook_data$response_time) <- "Response time to the Stroop trial in milliseconds"
var_label(codebook_data$is_previous_congruent) <- "Congruency of the previous trial"
var_label(codebook_data$is_congruent) <- "Congruency of the Stroop trial"
var_label(codebook_data$is_correct) <- "Correctness of the Stroop trial"
Create codebook
codebook(codebook_data)
Dataset name: codebook_data
The dataset has N=5544 rows and 10 columns. 5544 rows have no missing values on any column.
Metadata for search engines
|
#Variables
Unique identifier of the participant
Distribution of values for participant_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| participant_id | Unique identifier of the participant | numeric | 0 | 1 | 109 | 2051 | 3054 | 1913.189 | 708.1177 | <U+2581><U+2585><U+2581><U+2587><U+2583> |
Unique identifier of the data collection site
Distribution of values for lab
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| lab | Unique identifier of the data collection site | character | 0 | 1 | 3 | 0 | 4 | 8 | 0 |
Unique identifier of a trial
Distribution of values for trial_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| trial_id | Unique identifier of a trial | numeric | 0 | 1 | 12 | 520 | 1016 | 510.881 | 294.809 | <U+2586><U+2587><U+2586><U+2586><U+2587> |
Congruency of the Stroop trial
Distribution of values for stim_type
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_type | Congruency of the Stroop trial | character | 0 | 1 | 2 | 0 | 9 | 11 | 0 |
Word of the Stroop trial
Distribution of values for stimulus
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stimulus | Word of the Stroop trial | character | 0 | 1 | 6 | 0 | 3 | 6 | 0 |
Ink of the Stroop trial
Distribution of values for stim_color
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_color | Ink of the Stroop trial | character | 0 | 1 | 3 | 0 | 4 | 6 | 0 |
Response time to the Stroop trial in milliseconds
Distribution of values for response_time
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| response_time | Response time to the Stroop trial in milliseconds | numeric | 0 | 1 | 7 | 694 | 1001 | 709.0887 | 164.2068 | <U+2581><U+2581><U+2585><U+2587><U+2585> |
Congruency of the previous trial
Distribution of values for is_previous_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_previous_congruent | Congruency of the previous trial | numeric | 0 | 1 | 0 | 0.5 | 1 | 0.5 | 0.5000451 | <U+2587><U+2581><U+2581><U+2581><U+2587> |
Congruency of the Stroop trial
Distribution of values for is_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_congruent | Congruency of the Stroop trial | numeric | 0 | 1 | 0 | 0 | 1 | 0.4761905 | 0.4994778 | <U+2587><U+2581><U+2581><U+2581><U+2587> |
Correctness of the Stroop trial
Distribution of values for is_correct
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_correct | Correctness of the Stroop trial | numeric | 0 | 1 | 0 | 1 | 1 | 0.8546176 | 0.3525178 | <U+2582><U+2581><U+2581><U+2581><U+2587> |
JSON-LD metadata
The following JSON-LD can be found by search engines, if you share this codebook publicly on the web.
{
"name": "codebook_data",
"datePublished": "2021-01-28",
"description": "The dataset has N=5544 rows and 10 columns.\n5544 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name |label | n_missing|\n|:---------------------|:-------------------------------------------------|---------:|\n|participant_id |Unique identifier of the participant | 0|\n|lab |Unique identifier of the data collection site | 0|\n|trial_id |Unique identifier of a trial | 0|\n|stim_type |Congruency of the Stroop trial | 0|\n|stimulus |Word of the Stroop trial | 0|\n|stim_color |Ink of the Stroop trial | 0|\n|response_time |Response time to the Stroop trial in milliseconds | 0|\n|is_previous_congruent |Congruency of the previous trial | 0|\n|is_congruent |Congruency of the Stroop trial | 0|\n|is_correct |Correctness of the Stroop trial | 0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
"keywords": ["participant_id", "lab", "trial_id", "stim_type", "stimulus", "stim_color", "response_time", "is_previous_congruent", "is_congruent", "is_correct"],
"@context": "http://schema.org/",
"@type": "Dataset",
"variableMeasured": [
{
"name": "participant_id",
"description": "Unique identifier of the participant",
"@type": "propertyValue"
},
{
"name": "lab",
"description": "Unique identifier of the data collection site",
"@type": "propertyValue"
},
{
"name": "trial_id",
"description": "Unique identifier of a trial",
"@type": "propertyValue"
},
{
"name": "stim_type",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stimulus",
"description": "Word of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stim_color",
"description": "Ink of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "response_time",
"description": "Response time to the Stroop trial in milliseconds",
"@type": "propertyValue"
},
{
"name": "is_previous_congruent",
"description": "Congruency of the previous trial",
"@type": "propertyValue"
},
{
"name": "is_congruent",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "is_correct",
"description": "Correctness of the Stroop trial",
"@type": "propertyValue"
}
]
}`